Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: elegibility_appt_dates runtime calculations #198

Merged
merged 2 commits into from
Jul 16, 2024

Conversation

johanseto
Copy link
Collaborator

@johanseto johanseto commented Jul 12, 2024

Description

feat: elegibility_appt_dates runtime calculations in exam_metadata.

Testing instructions

  • Send an EAD request.
  • Check the keys sent in the ead_request object. Those keys would be calculated based on "now" (eligibility_appt_date_first) and one year after (eligibility_appt_date_last).
eligibility_appt_date_first
eligibility_appt_date_last

After

Check in audit the update data.
image

Additional information

Include anything else that will help reviewers and consumers understand the change.

  • Does this change depend on other changes elsewhere?
  • Any special concerns or limitations? For example: deprecations, migrations, security, or accessibility.
  • Link to other information about the change, such as Jira issues, GitHub issues, or Discourse discussions.

Checklist for Merge

  • Tested in a remote environment
  • Updated documentation
  • Rebased master/main
  • Squashed commits

@johanseto johanseto self-assigned this Jul 12, 2024
@johanseto johanseto changed the title feat: elegibility_appt_data runtime calculations feat: elegibility_appt_dates runtime calculations Jul 12, 2024
@johanseto johanseto marked this pull request as ready for review July 15, 2024 19:41
Comment on lines +328 to +329
exam_metadata["eligibility_appt_date_first"] = timezone.now().strftime("%Y/%m/%d %H:%M:%S")
exam_metadata["eligibility_appt_date_last"] = (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove these fields from the required_fields variable

@override_settings()
def test_get_exam_data_success(self):
def test_get_exam_data_success(self, mock_now):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not testing your changes... indeed if you revert the pipeline changes this test passes

@johanseto johanseto merged commit 3bf8ece into master Jul 16, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants